<template>
	<view style="width: 100%; height: 100vh;display: flex;flex-direction: column;align-items: center;justify-content: center;">
		<scroll-view scroll-y="true" class="scroll-Y" @scrolltolower="lower" :enable-flex="true" style="width: 100%;height: 50vh;flex: 1;display: flex;flex-direction: column;justify-content: center;align-items: center;">
			<!-- item -->
			
			<block v-if="data11.total!=0">
				<view class="padding-xs solid-bottom" style="width: 100%;display: flex;flex-direction: column;align-items: center;margin-top: 20rpx;"  v-for="(item,index) in data11.data" :key="index">
					<view style="width: 702rpx; display: flex;justify-content: space-between;align-items: center;">
						<view style="display: flex;align-items: center;">
							<!-- 头像 -->
							<image mode="aspectFill" :src="'http://jiyou.qianjiwl.xyz'+ item.avatar"  style="width: 90rpx;height: 90rpx;"></image>
							<view style="display: flex;flex-direction: column;justify-content: space-between;margin-left: 22rpx;">
								<!-- 昵称 -->
								<text style="font-size: 28rpx;color: #333333;">{{item.nickname}}</text>
								<!-- 等级 -->
								<text style="font-size: 26rpx;color: #808080;margin-top: 21rpx;">会员等级：{{item.grade_name}}</text>
							</view>
						</view>
						<view style="display: flex;flex-direction: column; justify-content: space-between;font-size: 20rpx;color: #808080;">
							<!-- 账号 -->
							<!-- <text>账号：12345678</text> -->
							<view style="display: flex;margin-top: 21rpx; height: 27rpx; align-items: center;">
								<image mode="aspectFill" src="../../static/tuandui.png" style="width: 32rpx;height: 27rpx; vertical-align: middle;"></image>
								<!-- 团队ID -->
								<text style="margin-left: 16rpx; height: 27rpx;" >{{item.username}}</text>
							</view>
						</view>
					</view>
					<!-- 分割线 -->
					<view style="width: 100%;height: 1px;background-color: #F5F5F5;margin-top: 20rpx;"></view>
				</view>
			</block>
			<view v-else style="height: 80vh; display: flex; justify-content: center; align-items: center; flex-direction: column;" class="block">
				<image src="../../static/empty.png" mode="" class="margin-top-xl" style="width: 200rpx; height: 200rpx; "></image>
				<text class="text-bold margin-top">暂无数据</text>
			</view>

		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dd:'http://jiyou.qianjiwl.xyz',
				data11:{}
			}
		},
		onLoad() {
			this.getbrowseList()
		},
		methods: {
			lower() {
				console.log("页面到达底部");
			},
			async getbrowseList() {
				const res = await this.$api('my_friends', {
					
				},);
				this.data11= res.data
				console.log('this.data11 :>> ', this.data11);
			
				
			},
			
		}
	}
</script>

<style lang="scss" scoped>

</style>
